/*********************************************************
          File Name:10.36.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Mon 14 Mar 2016 08:49:38 PM CST
**********************************************************/

#include <iostream>
#include <algorithm>
#include <list>

using namespace std;

int main()
{
    list<int> li{1, 2, 3, 0 , -3, -2, -1};

    auto it = find(li.crbegin(), li.crend(), 0);

    cout << distance(it, li.crend()) << endl;

    return 0;
}
